package com.user.controller;

import com.user.entity.User;
import com.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;

/**
 * @author cuichao
 */
@RestController
@RequestMapping("user")
public class UserController {

    @Autowired
    private UserService userService;
    

    @GetMapping("all")
    public List<User> findAllUser(){
        return userService.selectAllUser();
    }

}
